<link rel="stylesheet" href="../../新闻管理系统/public/style/news_content_message.css" type="text/css" />
<div id="box">
<div id="header">
 <div class="navs">
  <ul>
    <p><a href="index.php?p=home&c=news&a=list" > 新闻首页</a></p>
    <?php  session_start(); ?>
     <?php if($_SESSION == null){ ?>
       <p><a href="index.php?p=home&c=enroll&a=display" >注册</a></p>
       <p><a href="index.php?p=home&c=user&a=login" >登录</a></p>
     <?php }else{ ?>
       <p><?php echo $_SESSION['user']; ?></p>
       <p><a href="index.php?p=home&c=user&a=logout" >退出</a></p>
     <?php } ?>
  </ul>
 </div>
</div>

<div id="main">
 <!--将以下内容作为左侧内容-->
 <div class="main-Left">
  <div class="news-head">
   <div class="source-logo">
   <img src="../../新闻管理系统/public/images/logo.png" />
   </div>
   <div class="source">
    <h2><?php echo $rs['title'] ?></h2>
    <h4><?php echo $rs['source'] ?> | <?php echo $rs['date'] ?></h4>
   </div>
  </div>
  <div class="news-body">
    <div class="source-time">
       <h3>&nbsp;&nbsp;记者 ：<?php echo $rs['reporter'] ?></h3>
    </div>
    <div class="source-content">
       <p>
         &nbsp;&nbsp;&nbsp;&nbsp;<?php echo $rs['content'] ?>
       </p>
    </div>
      <br />
      <h3>&nbsp;&nbsp;责任编辑：<?php echo $rs['editor']; ?>  </h3>
      <br />
    <form id="form1" name="form1" method="post" action="">
      <input type="submit" name="button" class="fankui" value="我要反馈" />
    </form>
      <br />
  </div>
  <div class="message">
   <div class="mess-a">
     <h2>网友评论</h2>
      <div class="mess-aa">
        <p><?php echo $num ?>条评论</p>
      </div>
      <form id="form2" name="form2" method="post" action="index.php?p=home&c=content&a=liuyan&id=<?php echo $rs['id']; ?>">
          <input type="text" name="content" style="height:50px; width:615px;" class="aaa"  value="说的什么吧"/>
          <input type="submit" name="button" style="height:40px; width:80px;"class="bbb" value="发布" />
      </form>    
   </div>
   <div class="mess-b">
      <h2>最新评论</h2>
<?php for($j=0;$j<count($sr);$j++){ ?>
   <div class="mess-bb">
       <ul class="cca">
         <img src="../../新闻管理系统/public/images/头像.jpg" />
       </ul>
       <ul class="ccb">
        <p><b><?php echo $sr[$j]['reporter']; ?></b>留言说：</p>
        <p>内容：<?php echo $sr[$j]['content']; ?></p>
        <p>时间：<?php echo $sr[$j]['date']; ?></p>     
        <form id="form3" name="form3" method="post" action="index.php?p=home&c=content&a=huihu&pid=<?php echo $sr[$j]['pid']; ?>&id=<?php echo $sr[$j]['id']; ?>">
          <input type="text" name="content" id="content" />
          <input type="submit" name="button" id="button" value="回复" />
        </form>
       </ul>
    <?php for($i=0;$i<count($ss);$i++){ ?>
      <?php if($sr[$j]['pid']==$ss[$i]['m_pid'] && $sr[$j]['id']==$ss[$i]['m_id']){ ?>   
        <ul class="ccc">
         <p>留言:<b><?php echo $ss[$i]['username']; ?></b>回复<b><?php echo $sr[$j]['reporter']; ?></b></p>
         <p>内容：<b><?php echo $ss[$i]['content']; ?></b></p>
         <p><?php echo $ss[$i]['date']; ?></p>
        </ul>
      <?php } ?>
    <?php } ?>
   </div>
<?php } ?>
   </div>
  </div>
 </div>
 <div class="main-Right">
   <h2>推荐新闻</h2>
    <?php for($i=35;$i<count($rrs);$i++){ ?>
     <ul>
      <li><?php echo $rrs[$i]['title'] ?></li>
     </ul>
    <?php } ?>
   <div class="a">
    <img src="../../新闻管理系统/public/images/Bai-1.jpg" />
    <p>杨振宁惊扰了中国的大对撞机之梦</p>
   </div>
   <div class="b">
    <img src="../../新闻管理系统/public/images/Bai-2.jpg" />
    <p>B站拿下LOL三年独播权</p>
   </div>
   <div class="c">
     <img src="../../新闻管理系统/public/images/Bai-3.jpg" />
     <p>成都将评选6个“最美河湖”</p>
   </div>
 </div>
</div>
<div id="footer">
</div>
</div>
